import Vue from 'vue'
import App from './App.vue'
import 'lib-flexible'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';

import tools from '../src/utils/tools';
Vue.use(tools)


import dayjs from "dayjs"
Vue.prototype.$dayjs = dayjs;

// 引入路由
import VueRouter from 'vue-router'
import router from './router'

//引入vuex
import './store'

// 引入axios文件：会自动执行其内部代码
import './utils/axios'
axios.defaults.baseURL='http://127.0.0.1:8000/'

import store from './store'
//全局引入echarts
import * as echarts from 'echarts'
import axios from 'axios';

// 引入AntD
import Antd from 'ant-design-vue'; 
// 引入AntD的样式文件
import 'ant-design-vue/dist/antd.css';
// 将AntD注册为Vue的插件
Vue.use(Antd)

Vue.prototype.$echarts=echarts

Vue.config.productionTip = false
Vue.use(ElementUI)
//关闭生产提示
Vue.config.productionTip = false
Vue.use(VueRouter)


new Vue({
  render: h => h(App),
  store,
  router
}).$mount('#app')


